package com.neusoft.demo.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.neusoft.demo.dao.Goods_typeMapper;
import com.neusoft.demo.po.Goods_type;


@Service
public class Goods_typeService {

	@Autowired
	private Goods_typeMapper goods_typeMapper;
	

	public List<Goods_type> queryGoods_type() {
		return goods_typeMapper.queryGoods_type();
	}
	

	public Goods_type queryGoods_typeById(int typeId){
		return goods_typeMapper.queryGoods_typeById(typeId);
	}
	

	public List<Goods_type> queryGoods_typeByLike(Goods_type goods_type){
		return goods_typeMapper.queryGoods_typeByLike(goods_type);
	}
	

	public void updateGoods_type(Goods_type goods_type) {
		goods_typeMapper.updateGoods_type(goods_type);
	}
	

	public void deleteGoods_type(int Type_id) {
		goods_typeMapper.deleteGoods_type(Type_id);
	}
	

	public void addGoods_type(Goods_type goods_type) {
		System.out.println(goods_type);
		goods_typeMapper.addGoods_type(goods_type);
	}
}
